#ifndef __BTL_FINGERPRINT_CONFIG_H__
#define __BTL_FINGERPRINT_CONFIG_H__

// #define __BFXX_PROTOCOL_MOH__
#define __BFXX_PROTOCOL_MOC__

#define USB_LOW_PWR_MGMT_SUPPORT
#define __BTL_FP_ALGORITHM__
#define __BFXX_FINGERPRINT__
#define __DEBUG_LOG__
// #define __FP_WDG__
// #define BTL_SDK_DEBUG
// #define __FP_ONE_STEP_POWER__

#define __BTL_FP_TEST__
#define __HZ_PROJECT__

#include <stdint.h>
#include <stddef.h>
#include "fp_log.h"
#include "fp_flash.h"

#ifdef __BTL_FP_ALGORITHM__
#include "btl_bep.h"
#include "btl_external_template_storage.h"
#include "btl_special_api.h"
#endif /* __BTL_FP_ALGORITHM__ */

#include "media/includes.h"
#include "app_config.h"
#include "system/includes.h"
#include "system/event.h"
#include "system/timer.h"
#include "system/init.h"
#include "asm/spi.h"
#include "asm/power_interface.h"
#include "asm/includes.h"
#include "asm/cpu.h"
#include "asm/irq.h"
#include "asm/clock.h"
#include "generic/log.h"
#include "generic/gpio.h"
#include "gpio.h"
#include "sdfile.h"
#include "fs.h"
#include "asm/mcpwm.h"
#include "asm/clock.h"

#include "board_config.h"
#include "system/includes.h"
#include "asm/power_interface.h"
#include "app_config.h"

//系统接口返回值错误码 #include "os/os_error.h"

//新建任务方式,任务有2种驱动方式
//1、发消息事件 来驱动
//2、信号量    来驱动
#define TASK_RUN_MSG      0x01 //消息
#define TASK_RUN_SEM      0x02 //信号量
#define TASK_RUN_WAY      TASK_RUN_MSG 
//消息大小限制
#define MAX_MSG      (16)                    //固定不能改大
#define MAX_BUF      ((MAX_MSG - 2) * 4 - 1) //固定不能改大

//任务的参数定义
#define CASE_TASK_NAME  "fp_task"
#define FP_WORK_NAME    "fp_WORK"
#define CASE_TASK_PRIO  2         // 任务优先级：1-3
#define CASE_TASK_STACK 4 * 1024  // 任务栈大小：128*n <= 1024
#define CASE_TASK_QSIZE 1 * 1024  // 任务消息池大小：128*n <= 1024

typedef enum{
    CASE_TASK_MSG_0 = 0,
    CASE_TASK_MSG_1,
}CASE_TASK_MSG;

#endif /* __BTL_FINGERPRINT_CONFIG_H__ */
